package com.dot.dominion;

import com.dot.dominion.boardview.BoardView;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Dominion extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        // New Game Button
        View newGameButton = findViewById( R.id.mainScreen_newGameButton );
        newGameButton.setOnClickListener( this );
        
        // Exit Button
        View exitButton = findViewById( R.id.mainScreen_exitButton );
        exitButton.setOnClickListener( this );
    }
    
    public void onClick( View view ) {
    	switch( view.getId() ) {
    		case R.id.mainScreen_newGameButton:
    			//Intent newGame = new Intent( this, Game.class );
    			/*
    			Intent newGame = new Intent( this, GameView.class );
    			startActivity(newGame);
    			*/
    			Intent newGame = new Intent( this, BoardView.class );
    			startActivity(newGame);
    			break;
    		case R.id.mainScreen_exitButton:
    			finish();
    	}
    }
}
